package com.ctl.szmd.szmd.feature_wm.di

import com.ctl.lib_common.utils.http.HttpEngine
import com.ctl.szmd.szmd.feature_wm.data.WmFactory
import com.ctl.szmd.szmd.feature_wm.data.api.WmService
import com.ctl.szmd.szmd.feature_wm.ui.viewmodel.*
import com.ctl.szmd.szmd.feature_wm.ui.viewmodel.pager1.SubOrgViewModel
import com.ctl.szmd.szmd.feature_wm.ui.viewmodel.pager1.WmBriefViewModel
import org.koin.android.viewmodel.dsl.viewModel
import org.koin.core.module.Module
import org.koin.dsl.module

/**
 * created by : chentl
 * Date: 2020/12/23
 */


val wmRepository = module {
    single {
        WmFactory.makeWmRepository(HttpEngine.getService(WmService::class.java))
    }
}

val wmModules = listOf(wmRepository, viewModelModule, wmAdapterModule)